<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
.tb{width: 200px; min-height: 25px; line-height: 25px; text-align: center; border-collapse: collapse; padding:2px;}
</style>
</head>
<body>
	<h1>用户登记表</h1>
	<c:if test="${empty map}">
		<h2>还没有任何登记信息</h2>
	</c:if>
	<c:if test="${not empty map}">
		<table class="tb" border="1" cellspacing="0" cellpadding="0" >
			<tr>
				<th>序列</th>
				<th>姓名</th>
				<th>年龄</th>
				<th>爱好</th>
			</tr>
			<c:forEach items="${map}" var="user" varStatus="x">
				<tr>
					<td>${x.count}</td>
					<td>${user.value.xm}</td>
					<td>${user.value.age}</td>
					<td><c:forEach items="${user.value.hobby}" var="x">${x} </c:forEach><br></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
	<a href="index.jsp">返回主页继续登记</a>
</body>
</html>